<form class="form-horizontal" id="ProProductDetailForm" xmlns:th="http://www.w3.org/1999/xhtml">
    <!--    <input class="hidden" name="userId" th:value="${user.userId}">-->
    <input class="hidden" name="prodId" th:value="${proProduct.prodId}">

    <div class="box-body">
        <div class="form-group">
            <label  class="col-sm-3 control-label">产品名称 :</label>
            <div class="col-sm-8">
                <input  name="prodName" class="form-control" readonly="readonly" min="3" require="必填项"  placeholder="" th:value="${proProduct.prodName}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">产品型号 :</label>
            <div class="col-sm-8">
                <input name="prodType" class="form-control" placeholder="" th:value="${proProduct.prodType}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">等级、批次 :</label>

            <div class="col-sm-8">
                <input name="prodBatch" class="form-control" placeholder="" th:value="${proProduct.prodBatch}">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label  class="col-sm-3 control-label">产品单位 :</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="prodUnit" class="form-control" placeholder="" th:value="${proProduct.prodUnit}">-->

<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label  class="col-sm-3 control-label">产品单位 :</label>

            <div class="col-sm-8">
                <input name="prodUnit" class="form-control" placeholder="" th:value="${proProduct.prodUnit}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">产品价格 :</label>
            <div class="col-sm-8">
                <input name="prodPrice" class="form-control" placeholder="" th:value="${proProduct.prodPrice}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">产品价格 :</label>
            <div class="col-sm-8">
                <input name="prodMemo" class="form-control" placeholder="" th:value="${proProduct.prodMemo}">
            </div>
        </div>

    </div>
    <!-- /.box-body -->
    <div class="box-footer">
        <div class="pull-right">
            <button type="button" id="saveDetailCustomer" class="btn btn-info">确定</button>
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
        </div>
    </div>
    <!-- /.box-footer -->
</form>
<script>
    $(function () {
        $("#saveDetailCustomer").on('click', function () {
            if (doValidForm(ProProductDetailForm)) {
                Core.mask("#saveDetailCustomer");
                Core.postAjax("/product/edit",$("#ProProductDetailForm").serialize(),function (data) {
                    if (data.status == 200) {
                        Core.unmask("#saveDetailCustomer");
                        $("#userDetailModal").modal("hide");
                        $("#myModal").modal("hide");
                        Core.refreshTable("#table",true);
                    }
                    layer.msg(data.msg);
                })
            }
        });
    });
</script>